package com.lancoo.ccas52.mapper;
import com.lancoo.ccas52.entity.Major;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;

import com.lancoo.ccas52.entity.CssMajorLimit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 专业年级选课上限 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-02-07
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface CssMajorLimitMapper extends BaseMapper<CssMajorLimit> {

    int insertBatch(@Param("cssMajorLimitCollection") List<CssMajorLimit> cssMajorLimitCollection);

    /**
     * 获取专业选课上限
     * @param gradeId 基础平台年级id
     * @param majorId 基础平台专业id
     * @param studyNature
     * @return
     */
    Major getMajorLimit(@Param("gradeId") String gradeId,@Param("majorId") String majorId,@Param("studyNature") Integer studyNature);









}
